\chapter{Tables, Figures and Diagrams}
\label{chap:tagfigdiag}

\section{Figures}

We can include encapsulated PostScript\texttrademark\ figures
(\texttt{.eps}) in the document and refer to it using a label.
For example, MUN's logo can be seen in Figure~\ref{fig:mainmunlogo}.

\munepsfig{mainmunlogo}{This is MUN's logo}

Figure~\ref{fig:spam} shows spam volume graph created using the
freely available spreadsheet application of the office suite
\texttt{OpenOffice.org}.\munfootnote{This office suite can be
downloaded at no cost from \texttt{http://openoffice.org/}.  There
are versions for Linux, Microsoft Windows and Solaris.}
Figure~\ref{fig:db-deadlock} shows a Petri net created using the
\texttt{xfig} program.  The figure is scaled down to 50\% of it's
original size.  

\munepsfig{spam}{This is a spam chart}

\munepsfig[0.50]{db-deadlock}{A deadlocked Petri net}

\section{Tables}

We can also do tables, as seen by Table~\ref{tab:pop}.  Note that, as
required by SGS guidelines, the caption for a table appears above the
table and captions for figures appear below the figure.  Tables and
Figures can ``float'' --- they may not appear on the page on which they
are mentioned.  \LaTeX\ tries to handle figure and table placement
intelligently, but if if you have a lot of them without a reasonable
amount of surrounding textual content, the figures and tables can
accumulate towards the end of the chapter.

\muntab{|c||c|}{pop}{Population of Graduate Students}{
\hline
Year & Students \\
\hline
2000 & 8 \\
2001 & 5 \\
2002 & 5 \\
2003 & 22  \\
2004 & 26 \\
\hline
}

